package main

import (
	"fmt"

	"atomgit.com/openlinksaas/swarm_api_proxy/cmds/project_cmd"
	"atomgit.com/openlinksaas/swarm_api_proxy/cmds/serv_cmd"
	"github.com/spf13/cobra"
)

func main() {
	var rootCmd = &cobra.Command{}
	cfgPath := rootCmd.PersistentFlags().String("config", "", "swarm api proxy config")
	project_cmd.Init(cfgPath, rootCmd)
	serv_cmd.Init(cfgPath, rootCmd)
	err := rootCmd.Execute()
	if err != nil {
		fmt.Println(err)
	}
}
